<template>
	<view class="content">
		<view class="header">
			<view :style="{height: systemBarHeight + 'px'}">
			</view>
			<view class="navbar">
				<image src="/static/xy/fh.png" mode="" @click="fh()"></image>
				<text>我的课时</text>
			</view>
		</view>
		
		<view class="list">
			<view class="list_item" @click="details()">
				<view class="list_item_top">
					<text>科目三</text>
				</view>
				<view class="list_item_bom">
					<view class="list_item_bom1">
						<text>王小明 | 15012345678</text>
					</view>
					<view class="list_item_bom2">
						<text>1课时</text>
					</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemBarHeight: 0,
			}
		},
		mounted() {
			/* 手机顶部高度 */
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			fh() {
				uni.navigateBack({
					delta: 1
				})
			},
			details(){
				uni.navigateTo({
					url:'/pagesA/stu_details'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 750rpx;
		height: 1624rpx;
		background: #F5F5F5;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
	.header {
		background: #FFFFFF;
	}

	.navbar {
		height: 88rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;

		>image {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			left: 32rpx;
		}

		>text {

			font-family: PingFang SC, PingFang SC;
			font-weight: 600;
			font-size: 34rpx;
			color: #43484D;

		}
	}
	
	.list{
		padding-top: 24rpx;
		.list_item{
			width: 92%;
			margin: 0 auto 24rpx;
			height: 136rpx;
			background: #FFFFFF;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			.list_item_top{
				width: 112rpx;
				height: 48rpx;
				background: #53DDA8;
				border-radius: 0rpx 16rpx 0rpx 16rpx;
				margin-left: auto;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #FFFFFF;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			.list_item_bom{
				width: 93%;
				margin: 30rpx auto 0;
				display: flex; justify-content: space-between;
				.list_item_bom1{
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #43484D;
				}
				.list_item_bom2{
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #43484D;
				}
			}
		}
	}
</style>